package com.his.dao.domain.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author fall
 * @since 2022-11-28
 */
@Getter
@Setter
@TableName("t_hospital")
@ApiModel(value = "Hospital对象", description = "")
public class Hospital extends Model<Hospital> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "hospital_id", type = IdType.AUTO)
    private Integer hospitalId;

    @TableField("logo")
    private String logo;

    @TableField("`name`")
    private String name;

    @TableField("hospital_type")
    private String hospitalType;

    @TableField("address")
    private String address;

    @TableField("`status`")
    private Integer status;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;


    @Override
    public Serializable pkVal() {
        return this.hospitalId;
    }

}
